package ru.amse.jsynchro.kernel.util;

import java.io.File;
import java.util.ArrayDeque;
import java.util.Deque;
import java.util.StringTokenizer;

public class Path {
    public static Deque<String> stringToDeque(String path) {
        StringTokenizer st = new StringTokenizer(path, File.separator);
        Deque<String> result = new ArrayDeque<String>();
        while (st.hasMoreTokens())  {
            result.add(st.nextToken());
        }
        return result;
    }
}
